package com.Guo.controller;

import com.Guo.entity.User;
import com.Guo.mapper.UserMapper;
import com.Guo.response.Result;
import com.Guo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Admin
 * @project test
 * @description
 * @date 2021-02-27-10:17
 */
@RestController
public class test {

   @Autowired
    private UserService userMapper;


   @GetMapping("/")
    public Result test(){
       List<User> list = userMapper.list();
       return Result.ok().data("user",list);
   }

}

